package session1.test.threadTest.test2;

import java.sql.Time;
import java.util.Date;
import java.util.Timer;

public class Main {
	public static int i=0;
	public static void main(String[] args) {
		CustomThread customThread=new CustomThread();
		customThread.start();
		System.out.println("Main:"+i++);
	}
}
class CustomThread extends Thread{
	CustomThread(String s){
		super(s);
	}
	CustomThread(){}
	@Override
	public void run() {
		super.run();
		System.out.println(getName()+":"+Main.i++);
	}
}
